package com.shanghaionstar.nav.model;

import com.amap.api.maps2d.model.LatLng;

/**
 * Created by 6335yz on 2016/7/25.
 */
public class FootPrintModel {
    public String cityName;
    public String poiCount;
    public String rank;
    public String cityRank;
    public LatLng latLng;
    public boolean isLastPoint;
    public String title;
    public int cityCount;
    public String seqId;
    public String poiCountInCity;
    public String destStreetName;


    @Override
    public boolean equals(Object o) {
        if (o instanceof LatLng) {
            LatLng oLatLng = (LatLng) o;
            return oLatLng.latitude == latLng.latitude && oLatLng.longitude == latLng.longitude;
        }
        return false;
    }

    @Override
    public int hashCode() {
        final int PRIME = 31;
        int result = 1;
        result = PRIME * result + Double.valueOf(latLng.latitude).hashCode() + Double.valueOf(latLng.longitude).hashCode();
        return result;
    }


    @Override
    public String toString() {
        return "FootPrintModel{" +
                "cityName='" + cityName + '\'' +
                ", poiCount='" + poiCount + '\'' +
                ", rank='" + rank + '\'' +
                ", cityRank='" + cityRank + '\'' +
                ", latLng=" + latLng +
                ", isLastPoint=" + isLastPoint +
                ", title='" + title + '\'' +
                ", cityCount=" + cityCount +
                ", seqId='" + seqId + '\'' +
                '}';
    }
}
